﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TMS
{
    public partial class LoginControl : UserControl
    {
        string uname = "test";
        string pwd = "12345";

        public LoginControl()
        {
            InitializeComponent();
        }

        private void btnSignIn_Click(object sender, EventArgs e)
        {
            if (txtUsername.Text == uname && txtPassword.Text == pwd)
            {
                Program.GetMainForm.ShowControl(ControlsEnum.ADMIN_CONTROL);
            }
        }
    }
}
